import java.util.Scanner;

public class Test {
    public static void main(String[] args){
        Scanner scanner=new Scanner(System.in);

        System.out.print("输入文字:");
        String A=scanner.next();

        int j=A.length();

        for(int i=0;i<A.length();i++){
            if(A.charAt(i)=='-'){
                j=i;
                break;
            }
        }
        StringBuilder result=new StringBuilder();

        for(int i=0;i<A.length();i++){
            if(i<j){
                result.append(A.charAt(i));
            } else if (i==j) {
                continue;
            }else{
                if (i == j + 1) {
                    result.append(Character.toUpperCase(A.charAt(i)));
                } else {
                    result.append(A.charAt(i));
                }
            }
        }

        System.out.println("处理结果：" + result.toString());

    }
}
